package core;

import stage.Index;

import java.io.IOException;
import java.util.HashMap;

public class JitLsFile {

    public static void lsSimple() throws IOException {
        HashMap<String, String> indexList = Index.getIndexMap();
        for(String hash : indexList.keySet()){
            System.out.println(indexList.get(hash));
        }
    }

    //打印暂存区文件
    public static void lsLong() throws IOException {
        HashMap<String, String> indexList = Index.getIndexMap();
        for(String hash : indexList.keySet()){
            System.out.println("100644"+" "+hash+" "+"0\t"+indexList.get(hash));
        }
    }
}
